<template>
  <div>
    <h3>子组件</h3>
    <button @click="toggleExpand">Toggle Expand</button>
  </div>
</template>

<script>
export default {
  name: 'ChildComponent',
  props: {
    isExpanded: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleExpand() {
      this.$emit('update:isExpanded', !this.isExpanded)
    }
  }
}
</script>

<style lang="scss" scoped></style>
